package test;

import com.google.gson.Gson;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Created on 2016/6/23.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:context-test1.xml")
public class BaseTest1 {

    protected Gson gson = new Gson();

    @Test
    public void test() throws Exception {

    }

    public void display(Object object) {
        System.out.println("value = " + gson.toJson(object));
    }

    @Before
    public void before() {
        System.out.println("----------");
        System.out.println("----------");
    }


    @After
    public void after() {
        System.out.println("----------");
        System.out.println("----------");
    }
}
